//
//  ViewController.m
//  YBNetworkingDemo
//
//  Created by ybgo on 2020/6/11.
//  Copyright © 2020 ybgo. All rights reserved.
//

#import "ViewController.h"
#import <YBNetworking.h>

@interface ViewController ()

@end

@implementation ViewController

+ (void)initialize{
    [[self alloc] setupConfig];
}

// 网络配置
- (void)setupConfig {
    //    1.网络请求全局e配置
    [YBCenter setupConfig:^(YBConfig * _Nonnull config) {
        
        config.generalServer = @""; //设置请求地址
        config.callbackQueue = dispatch_get_main_queue();
        config.engine = [YBEngine sharedEngine];//底层请求的引擎
        config.operationMaxCount = 100;
#ifdef DEBUG
        config.consoleLog = NO;
#endif
        //config.generalHeaders = [ApiParamManager requestHeaderDict];//公共请求头
    }];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
}


@end
